package com.chenzehe.zdmya.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.chenzehe.zdmya.dao.ContentAreaDao;
import com.chenzehe.zdmya.domain.Area;

@Service
@Transactional
public class AreaService extends BaseService implements IAreaService {
	@Resource
	ContentAreaDao areaDao;

	@Override
	public Area getAreaByEname(String ename) {
		Area area = areaDao.findUniqueBy("ename", ename);
		if (area != null) {
			return area;
		}
		return null;
	}

}
